import type { AxiosResponse } from 'axios'
import request from '@/utils/request'

const serviceName = import.meta.env.VITE_APP_SREVICE_NAME_CITY_MANAGEMENT
/**
 * 收藏接口
 */
class AiServe {
  sendQaMessage<T = any>(data = {}): Promise<AxiosResponse<T>> {
    return request({
      url: `${serviceName}/qa/getQaAnswer`,
      method: 'post',
      data
    })
  }

  getQsStatus<T = any>(data = {}): Promise<AxiosResponse<T>> {
    return request({
      url: `${serviceName}/qa/getQaStatus`,
      method: 'post',
      data
    })
  }
}
export default new AiServe()
